package com.bjesc_b2c.app.appraiset.http;

import com.bjesc_b2c.app.appraiset.bean.DealerCarBean;

import java.util.List;

import master_bean.CarDetailsBean;
import master_bean.CarSourceImageBean;
import master_bean.OrderTrackBean;
import master_bean.ToDayBean;
import retrofit2.http.POST;
import rx.Observable;
import rxretrofit_base.model.RxHttpUrl;
import rxretrofit_base.model.TokenBean;

/**
 * Created by lenovo on 2017/2/27.
 */

public interface IApiFragmentRequest {
    //获取今日计划
    @POST(RxHttpUrl.TODAY_CAR)
    Observable<TokenBean<List<ToDayBean>>> today();
    //获取打回历史
    @POST(RxHttpUrl.REPULSE_CAR)
    Observable<TokenBean<List<ToDayBean>>> repulseHistory();
    //获取上传历史
    @POST(RxHttpUrl.UPLOAD_CAR)
    Observable<TokenBean<List<ToDayBean>>> uploadHistory();
    //保存车源图片
    @POST(RxHttpUrl.SAVE_SOURCE_IMG)
    Observable<TokenBean> saveSourceImg();

    //获取车源图片
    @POST(RxHttpUrl.GET_SOURCE_IMG)
    Observable<TokenBean<CarSourceImageBean>> getSourceImg();
    //获取车辆详情
    @POST(RxHttpUrl.CAR_DETAILS)
    Observable<TokenBean<CarDetailsBean>> getCarDeteils();
    //获取车辆详
    @POST(RxHttpUrl.ORDER_TRACK)
    Observable<TokenBean<List<OrderTrackBean>>> orderList();
    //获取车源
    @POST(RxHttpUrl.DEALER_CAR)
    Observable<TokenBean<DealerCarBean>> getDealerCars();

}
